-- GENERATED SPELL FOR [Rifleman Wheeler] --


function spell0_10803(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16767,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10803', 598, 1)
end

function spell1_10803(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16775,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10803', 584, 1)
end

function spell2_10803(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16778,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10803', 636, 1)
end

function Sorts_10803(pUnit, Event)
local choix_sorts_10803 = math.random(0, 2)
if choix_sorts_10803 == 0 then
pUnit:RegisterEvent('spell0_10803', 1, 1)
end
if choix_sorts_10803 == 1 then
pUnit:RegisterEvent('spell1_10803', 1, 1)
end
if choix_sorts_10803 == 2 then
pUnit:RegisterEvent('spell2_10803', 1, 1)
end
end

function mob10803_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10803', math.random(1500, 3000), 1)
end

function mob10803_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10803_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10803_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10803, 1, 'mob10803_Action')
RegisterUnitEvent(10803, 2, 'mob10803_Leave')
RegisterUnitEvent(10803, 3, 'mob10803_Kill')
RegisterUnitEvent(10803, 4, 'mob10803_Die')
